//
//  ZORuler.h
//  WaxPatch
//
//  Created by 梁炜东 on 16/4/20.
//  Copyright © 2016年 zerotech.com. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ZYXRulerScrollView.h"

@protocol ZYXRulerDelegate <NSObject>
@optional
- (void)zoRuler:(ZYXRulerScrollView *)rulerScrollView;
//当前所在位置值
- (void)delegateRulerCurrentValue:(NSString *)key;
//点击到尺子
- (void)delegateTapRulerCurrentValue:(NSString *)key;
//即将开始滑动尺子
- (void)delegateWillBeginDragging;
@end
@interface ZYXRuler : UIView<UIScrollViewDelegate>
@property (nonatomic, strong) ZYXRulerScrollView * rulerScrollView;
@property (nonatomic, assign) id <ZYXRulerDelegate> rulerDeletate;
/*
 *  count * average = 刻度最大值
 *  @param count        10个小刻度为一个大刻度，大刻度的数量
 *  @param average      每个小刻度的值，最小精度 0.1
 *  @param currentValue 直尺初始化的刻度值
 *  @param mode         是否最小模式
 */
- (void)showRulerScrollViewWithCount:(NSUInteger)count
                             average:(NSNumber *)average
                        currentValue:(CGFloat)currentValue
                           smallMode:(BOOL)mode;
- (NSInteger)getCurrentRulerValue;

- (void)resetRuler:(NSInteger)value;
@end
